<?php
	require_once dirname(__FILE__). '/config/config.php';
	$mod = (isset($_GET['mod']) && $_GET['mod'] != '')?$_GET['mod']:'main';
	require_once dirname(__FILE__). '/mods/'.$mod.'/index.php';
	$config = new Config();
	$page = new Page(&$config);
	echo $page->toString();	
	
	
?>